package com.data.modules.online.cgform.model;

import com.data.common.util.ConvertUtils;

public class SqlOrder {

    public static final String f197a = "asc";

    public static final String f198b = "desc";

    public static final String f199c = " ORDER BY ";

    public static final String f200d = "ID";

    private String f201e;

    private String f202f;

    private String f203g;

    public static SqlOrder m144a() {
        return m145a("");
    }

    public static SqlOrder m145a(String str) {
        SqlOrder eVar = new SqlOrder("ID");
        eVar.setAlias(str);
        return eVar;
    }

    public String getRealSql() {
        String str = this.f203g + ConvertUtils.camelToUnderline(this.f201e);
        if ("asc".equals(this.f202f)) {
            return str + " asc";
        }
        return str + " desc";
    }

    public SqlOrder() {
    }

    public SqlOrder(String str, String str2) {
        this.f201e = str;
        this.f202f = str2;
        this.f203g = "";
    }

    public SqlOrder(String str) {
        this.f202f = "desc";
        this.f201e = str;
        this.f203g = "";
    }

    public String getColumn() {
        return this.f201e;
    }

    public void setColumn(String column) {
        this.f201e = column;
    }

    public String getRule() {
        return this.f202f;
    }

    public void setRule(String rule) {
        this.f202f = rule;
    }

    public String getAlias() {
        return this.f203g;
    }

    public void setAlias(String alias) {
        this.f203g = alias;
    }
}
